/**
 * JAVACC DEMO 1.0
 * @copy right dwusoft company All rights reserved. 
 * @Package com.apache.bid.service.cacheplugins  
 */
package com.apache.bid.service.cacheplugins;

import com.apache.api.manager.PluginConnector;
import com.apache.api.manager.ProxyManager;
import com.apache.api.vo.ParamsVo;
import com.apache.api.vo.ResultEntity;
import com.apache.bid.common.WbdToolsUtil;
import com.apache.bid.entity.BidSession;

/**
 * description:  删除活动插件
 * @author Hou Dayu 创建时间：2016-3-23  
 * 
 */
public class DelSessionPluginImpl implements PluginConnector {

	private ProxyManager wbdProxyCacheManager;

	/**
	 * TODO 简单描述该方法的实现功能（可选）.  
	 * @see com.zbxsoft.api.manager.PluginConnector#execute(com.zbxsoft.api.vo.ParamsVo)  
	 */
	public Object execute(ParamsVo param) throws Exception {
		ResultEntity entity = new ResultEntity();
		BidSession session = new BidSession();
		session = (BidSession) WbdToolsUtil.getInstance().convert2Bean(param.getParams(), session);
		param.setObj(session);
		param.setKey("cacheDelSessionPlugin");
		entity = (ResultEntity) wbdProxyCacheManager.saveInvoke(param);
		return entity;
	}

	public void setWbdProxyCacheManager(ProxyManager wbdProxyCacheManager) {
		this.wbdProxyCacheManager = wbdProxyCacheManager;
	}
}
